﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Web企业级开发
{
    public class Student
    {
        public string Name { get; set; }
        public int Stuno { get; }
        public int Classno { get; }
        public DateTime Birthday1 { get; }
        public string Address1 { get; }
        public uint StuNo { get; set; }
        public int ClassNO { get; set; }
        public DateTime Birthday { get; set; }
        public string Address { get; set; }

        public Student() { 
        
        }
        public Student(string name,int stuno,int classno,DateTime birthday,string address) {
            Name = name;
            Stuno = stuno;
            Classno = classno;
            Birthday = birthday;
            Address = address;
        }
        public string Say() {
            return $"大家好，我是来自{Address}的{Name}，我的学号是{StuNo}，我今年{DateTime.Now.Year-Birthday.Year}岁。";
        }
    }
}
